﻿using AbpDemo.Admins.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace AbpDemo.Admins
{
    public interface IAdminService : IApplicationService
    {
        /// <summary>
        /// 创建用户
        /// </summary>
        /// <param name="adminDto"></param>
        /// <returns></returns>
        Task<RegisterResultDto> CreateAsync(RegisterDto registerDto);
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="adminDto"></param>
        /// <returns></returns>
        Task<LoginResultDto> LoginAsync(LoginDto adminDto);
        /// <summary>
        /// 获取当前登录用户信息
        /// </summary>
        /// <param name="Token"></param>
        /// <returns></returns>
        ResultDto<AdminInfo> Info(string Token);
    }
}
